package com.ingesup.dao;

import java.util.List;

import com.ingesup.entities.Contact;

/**
 * @author FDEJEAN
 */

public class ContactDaoImpl extends GenericDaoImpl<Contact> implements ContactDao{

	public ContactDaoImpl(Class<Contact> type) {
		super(type);
	}
	
	/**
	 * {@inheritDoc}
	 */
	public List<Contact> getAll() {
		return em.createNamedQuery("getAllContacts", Contact.class).getResultList();
	}
}
